package com.wtzz.police.base.util;

/**
 * 类说明
 *
 * @author zxh
 * @date 2019-01-14
 */
public class Constant {

    public static final String REDIS_USER = "REDIS_USER";

    public static final String JWT_CLAIM_IP = "ip";

    /**
     * admin
     */
    /**
     * 管理员
     */
    public static final String ROLE_ADMIN = "ROLE_ADMIN";

    /**
     * 普通用户
     */
    public static final String ROLE_USER = "ROLE_USER";

    /**
     * 路径分隔字符
     **/
    public static final String PATH_SEPARATE = "/";

    /**
     * 请求路径中id的分隔符
     **/
    public static final String REQUEST_ID_SEPARATE = ",";

    public static final String JWT_SECRET = "wtzz";
    public static final int JWT_EXPIRATION = 86400;
    public static final String JWT_HEADER = "Authorization";
    public static final String JWT_TOKEN_PREFIX = "Bearer ";
    public static final String JWT_URL_PARAMETER = "token";

}
